<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>教案管理</title>
    
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/lessonPlanManage/lessonplan_list.js"></script>
	
  </head>
  
  <body class="easyui-layout" fit="true">
    <div data-options="region:'west',split:true" title="教案" style="width:200px;">
		<ul id="subject_tree" class="easyui-tree"></ul>
	</div>
	<div data-options="region:'center'">
	   <div class="easyui-layout" data-options="fit:true">
			<div data-options="region:'north'" style="height:220px">
				 <!-- DataGrid -->
			    <table id="knowledgeDg" class="easyui-treegrid" title="知识点列表" style="width: auto; height: auto;"
			    	data-options="url:'knowledge/queryList',
			    		idField:'id',
		    			treeField:'name',
		    			fit:true,
		    			singleSelect:true,
		    			rownumbers:true,
		    			animate:true">
			    	<thead>
			    		<tr>
			    			<th data-options="field:'id',hidden:true">知识点ID</th>
			    			<th data-options="field:'parentId',hidden:true">关联知识点ID</th>
			    			<th data-options="field:'name', width:150">知识点名称</th>
			    			<th data-options="field:'joinname',hidden:true, width:150">关联知识点</th>
			    			<th data-options="field:'remark', width:200">描述</th>
			    			<th data-options="field:'createTime', width:150">创建时间</th>
			    		</tr>
			    	</thead>
			    </table>
			</div>
			<div data-options="region:'center'">
				 <div class="easyui-layout" data-options="fit:true">
				 	<div data-options="region:'center'">
				 		<!-- DataGrid -->
					    <table id="dg" class="easyui-datagrid" title="教案信息列表" style="width: auto; height: auto;"
					    	data-options="url:'lessonplan/queryList',
					    			fit:true,
					    			singleSelect:true,
					    			rownumbers:true,
					    			toolbar:'#tb',
					    			pagination:true,
					    			onClickRow:dgClickRow,
					    			onLoadSuccess:dgOnLoadSuccess">
					    	<thead>
					    		<tr>
					    			<th data-options="field:'id',hidden:true">教案ID</th>
					    			<th data-options="field:'title', width:150">标题</th>
					    			<th data-options="field:'name', width:200">学科名称</th>
					    			<th data-options="field:'people', width:200">创建人</th>
					    			<th data-options="field:'remark', width:200">备注</th>
					    			<th data-options="field:'createTime', width:150">创建时间</th>
					    		</tr>
					    	</thead>
					    </table>
					    <!-- toolbar -->
					    <div id="tb" style="padding: 5px; height: auto;">
					    	<!-- search -->
					    	<div style="border-bottom: 1px solid #95B8E7;">
					    		<table>
					    			<tr>
					    				<td>标题：
					    					<input class="easyui-validatebox" id='title' name="title" style="width: 100px;" />
					    				</td>
					    				<td></td>
					    				
										<!-- <td>计划完成时间：
											<input type="text" id="startTime" name="startTime"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width : 120px !important"
											class="Wdate easyui-validatebox" />
											--
											<input type="text" id="endTime" name="endTime"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width : 120px !important"
											class="Wdate easyui-validatebox" />
										</td>
										<td></td>	 -->
					    				<td><a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch();">查询</a></td>
					    				<td><a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-reload" onclick="reSearch();">重置</a></td>
					    			</tr>
					    		</table>
					    	</div>
					    	<!-- opreate -->
					    	<div style="margin-bottom: 5px; text-align: right;">
					    		<%@include file="/WEB-INF/views/common/operate.jsp" %>
					    	</div>
					    </div>
				 	</div>
				 	<div data-options="region:'east'" style="width:330px">
				 		<table id="resource_dg"></table>
				 	</div>
				 </div>
			</div>
		</div>
	   
    </div>
    <!-- add/edit window -->
    <div id="win" class="easyui-window"
    	 data-options="modal:true,
    	 				closed:true,
    	 				maximizable:true,
    	 				minimizable:false,
    	 				collapsible:false,
    	 				iconCls:'icon-save',
    	 				draggable:false">
    	 <iframe id="contentFrame" src="" width=100% height=99% marginwidth=0 framespacing=0 marginheight=0 frameborder=no scrolling=no></iframe>
    </div>
  </body>
</html>
